/**
 * @param {number[]} piles
 * @return {number}
 */
var stoneGameII = function (piles) {
  if(piles.length==1) return piles[0]
  let dp = []
  let M = 1
  let X
  let len = piles.length
  X = len - M > 2*M ? M : 2*M
  for(let i=X;i<len;){

  }
}
